package org.pearl.spring.demo.pojo;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Description;

/**
 * Created by TD on 2021/5/20
 */
@Configuration
public class BeanConfig {

    @Bean(value = {"animal", "animal111", "animal222"})
    Animal animal() {
        return new Animal("Cat", 2);
    }
}
